import {Injectable} from '@angular/core';
import {HttpProvider} from '../../common/http'
import {API} from '../../common/api'

@Injectable()
export class ProductProvider {

  constructor(public http: HttpProvider) {

  }

  getList() {
    return this.http.ajax(API.GET_PRODUCT_LIST)
      .then(data => data || [])
      .catch(err => {
        console.error('product getList err:', err)
      })
  }

}
